package cn.itcast.microservice.order.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by User on 2018/2/25.
 * @author likk
 */
@Component
@ConfigurationProperties(prefix = "itcast") //以itcast开头的位置被匹配到
public class OrderProperties {

    private ItemProperties item = new ItemProperties();

    public ItemProperties getItem() {
        return item;
    }

    public void setItem(ItemProperties item) {
        this.item = item;
    }
}
